import {getUserInfo} from "../../../api/userInfo"

Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  async onShow(options) {
    let ret = await getUserInfo()
    this.setData({
      chatRoomIdArr:ret.chatRoomIdArr
    })
  },

  async update(){
    // console.log("子组件触发更新");

    let ret = await getUserInfo()
    this.setData({
      chatRoomIdArr:ret.chatRoomIdArr
    })
  }
})